/**
 * @Title: stationController.java
 * @Package tt.dz.mvc.controller.sys
 * @author pengyu
 * @date 2015年12月17日 上午10:21:55
 * @version V1.0
 */
package tt.dz.mvc.controller.sys;

import java.beans.IntrospectionException;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import jxl.write.WriteException;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

import tt.dz.dao.base.BaseDao;
import tt.dz.dao.ext.charger.OmsChargerChargeBillRecordDao;
import tt.dz.dao.ext.charger.OmsChargerDao;
import tt.dz.dao.ext.charger.OmsChargerStateAlternateDao;
import tt.dz.dao.ext.charger.OmsChargerStateDirectDao;
import tt.dz.entity.base.JsonCommon;
import tt.dz.entity.base.JsonForList;
import tt.dz.entity.base.JsonForMapDataList;
import tt.dz.entity.bigscreen.ScreenStation;
import tt.dz.entity.charger.OmsCharger;
import tt.dz.entity.charger.OmsChargerChargeBillRecord;
import tt.dz.entity.charger.OmsChargerStateAlternate;
import tt.dz.entity.charger.OmsChargerStateDirect;
import tt.dz.entity.station.OmsStation;
import tt.dz.entity.station.OmsStationLocation;
import tt.dz.mvc.controller.base.BaseController;
import tt.dz.service.base.OmsStationLocationService;
import tt.dz.service.imp.sys.ChargeDataUploadingVO;
import tt.dz.service.platform2platform.TeldPlatFormService;
import tt.dz.service.sys.OperStationService;
import tt.dz.service.sys.StationService;
import tt.dz.util.*;
import tt.dz.util.OmsConstant.MsgCodeEnum;
import tt.dz.vo.oms.ChargerExportVO;
import tt.dz.vo.oms.StationExportVO;

@Controller
@RequestMapping("teld")
public class TeldPlatFormController extends BaseController
{
	@Autowired
	TeldPlatFormService teldPlatFormService;
	
	private Logger log = LoggerFactory.getLogger(TeldPlatFormController.class);
	
	@SuppressWarnings("rawtypes")
	@RequestMapping("/getPageStationInfoList")
	@ResponseBody
	public JsonCommon<?> getPageStationInfoList(HttpServletRequest request, HttpServletResponse response) throws Exception {
		String pageNo = request.getParameter("pageNo");
		String pageSize = request.getParameter("pageSize");// 模糊
		
		JsonCommon  jfl = new JsonCommon<>();
		jfl.setPojo(teldPlatFormService.getPageStationInfoList(pageNo,pageSize));
		jfl.setCode(MsgCodeEnum.SUCCESS.getMsgCode());
		jfl.setMsg(MsgCodeEnum.SUCCESS.getMsgInfo());
		return jfl;

	}


}
